﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LPLib
{
    public static class Utilities
    {
        public static void ShiftFeatures<T, U>(PolymerPair<T, U> pair, int shift)
        {
            if (pair.Features == null)
                return;

            foreach (GeneAnnotations s in pair.Features.Keys.ToArray())
            {
                pair.Features[s] += shift;
            }
        }
    }
}
